package com.electric.action;

import com.electric.base.BaseAction;
import com.electric.service.UserService;

/**
 * @author Kevin Zhang
 *
 * 2011-5-10
 */
public class Main extends BaseAction {
	public String username = null;
	
	private UserService userService = new UserService(); 
	
	public String execute() throws Exception {
//		User u = new User();
//		u.setUsername("zjh");
//		u.setEmail("zjh459@gmail.com");
//		u.setPassword("19861122");
//		userService.add(u);
//		System.out.println(userService.list());
//		u.setId(userService.list().get(0).getId());
//		u.setEmail("xxxxx@163.com");
//		userService.update(u);
//		
//		this.setUsername(userService.list().get(0).getUsername());
		
		
		
		return SUCCESS;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	
	
}
